package io.terminus.spzx.order.mapper;

import io.terminus.spzx.model.entity.order.OrderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author lichunlong lcl253137@alibaba-inc.com
 * @Desc 【移动端】订单明细管理Mybatis Mapper
 * @Date 2024-12-21
 */
@Mapper
public interface OrderItemMapper {

    /**
     * 保存订单明细
     *
     * @param orderItem 订单明细
     */
    void save(OrderItem orderItem);

    /**
     * 根据订单id查询订单明细列表
     *
     * @param id 订单id
     * @return 订单明细列表
     */
    List<OrderItem> findByOrderId(Long id);
}
